package cn.webrx;

import java.util.stream.Stream;

public class Stream3 {
    public static void main(String[] args) {
        //Stream<Integer> is = Stream.of(1,2,3,3,30);

        //is.distinct().forEach(System.out::println);

        //System.out.println(is.filter(e->e%2==0).reduce((a, b) -> a + b).get());

        //System.out.println(is.count());
        //System.out.println(is.min((a,b)->b-a).get());
        //is.map(e->e+2).filter(e->e>3).forEach(System.out::println);


        Stream<User> su = Stream.of(new User(1,"a",10),new User(1,"a",10),new User(1,"a",10));
        System.out.println(su.distinct().count());
    }
}
